<?php
    if($friend_details->num_rows()>0){
        $details = $friend_details->row();
    }
?>
<?php
                $image_ava = './doggy_avatar/images/' . $details->avatar;
                if(file_exists($image_ava) && $details->avatar!=null){
                    $image_ava = base_url() . 'doggy_avatar/images/' . $details->avatar;
                } else{
                    $image_ava = root_url('doggy_flirt'). 'assets/noimage.gif';
            }?>
<div id="nouveaux_membres">
<div class="titre_home" style="text-transform: uppercase;">Demande d'ajout à la liste des amis</div>

<form method="post" action="<?php echo site_url('friend/accept/'.$details->id);?>">
    <table>
            <tr align="center">Est-ce que vous voulez ajouter <?php echo $details->display_name;?> à la liste des amis?</tr>
            <tr>    
            	<td width="100px"><img src="<?php echo $image_ava;?>" border ="0" width="50"/></td>
    			<td>
    				<input type="submit" name="submit" value="Accepter"/>
    				<input type="submit" name="deny" value="Refuser" />
    			</td>
            </tr>
    </table>
</form>
    </div>